import { base } from '@/config'
import http from '@/utils/request'

// 广告位置
const placeApi = {
  // 获取列表
  getPlaceList: params => {
    return http.get(`${base.advert}/bannerPlace/list`, params)
  },
  // 编辑
  updateShow: params => {
    return http.postJson(`${base.advert}/bannerPlace/edit/isShow`, params)
  },
  // 获取广告位置下拉列表
  getPlaceSelect: () => {
    return http.get(`${base.advert}/bannerPlace/selectList`)
  }
}

export default placeApi
